initialiseInstance
Initialise the SDK with configuration provided in MoEngage
Since
12.0.00
Parameters
: Instance of MoEngage
Initialise the SDK with configuration provided in MoEngage and SDK state, i.e. whether the SDK should be in enabled or disabled state.
By default, the SDK is enabled. Use this API only if you have a requirement to enable/disable SDK, else use MoEngage.initialiseInstance.
Note: State is persisted across session, once the SDK is disabled it will remain in disabled state until enabled again.
Since
12.0.00
Parameters
Initialise the default instance of SDK with configuration provided in the builderConfig
Since
13.06.00
Parameters
Instance of Application
Workspace Id from MoEngage Dashboard.
Data Center to in which MoEngage Account is created.
Configuration for initialising the SDK.
Initialise the default instance of SDK with configuration provided in the builderConfig and SDK state, i.e. whether the SDK should be in enabled or disabled state. By default, the SDK is enabled. Use this API only if you have a requirement to enable/disable SDK.
Note: State is persisted across session, once the SDK is disabled it will remain in disabled state until enabled again.
Since
13.06.00
Parameters
Instance of Application
Workspace Id from MoEngage Dashboard.
Data Center to in which MoEngage Account is created.
Instance of SdkState
Configuration for initialising the SDK.